Skip to main content

Move File to Folder

AutomatR.GoogleDrive.Activities.MoveFileToFolder

The "Move File to Folder" activity in AutomatR is part of the Google Drive activities package, facilitating the movement of files from one folder to another within a user's Google Drive account. This activity streamlines file management tasks in Google Drive, enhancing the efficiency of automation workflows.

Properties

NameDescription
Input
File Name To Be MovedSpecifies the name of the file to be moved, including the file extension. String variables containing the file name.
Destination FolderSpecifies the path of the destination folder on your Google Drive to which the file should be moved. String variables containing the destination folder path.
Misc
Display NameThe display name of the activity. A display name is automatically generated when you indicate a target.
Optional
DelaySpecifies the amount of time (in seconds) to wait before executing the "Move File to Folder" activity. This can be useful for handling synchronization issues. Integer variables containing the delay duration. Ex.: If the amount of time is 1000 milliseconds or 1 sec, i.e., 1.
Output
ResultOutputs true or false based on the success of the move file operation. Variables of relevant types (e.g., Boolean variables) to store the operation result.

How to use:

  1. Drag and drop the "Move File to Folder" activity onto the workflow.
  2. Configure the properties by specifying the file name and destination folder path within the Google Drive account.
  3. Optionally, configure the delay.
  4. Execute the workflow to move the specified file within Google Drive.

Example: Consider an example where the "Move File to Folder" activity is used to move a file named "document.txt" from one folder to another within Google Drive:

Move File to Folder:
File Name To Be Moved: "document.txt"
Destination Folder: "Root/Folder2/"
Result: isMoveSuccessful

In this example, the activity moves the "document.txt" file from its current location to the "Folder2" directory within Google Drive. The result of the operation (success or failure) is stored in the Boolean variable "isMoveSuccessful" for further handling in the workflow.